// PHSRecentWork.h: interface for the PHSRecentWork class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_PHSRECENTWORK_H__A7A66B77_3E5E_446E_92F6_D5A56B523AB0__INCLUDED_)
#define AFX_PHSRECENTWORK_H__A7A66B77_3E5E_446E_92F6_D5A56B523AB0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "PHSSetting.h"
#include "ProjectManager.h"

class SupportHangerManager;
class DllExport PHSRecentWork : public PHSSetting  
{
public:
	PHSRecentWork();
	virtual ~PHSRecentWork();

public:
	virtual BOOL InitSetting();
	virtual BOOL SaveSetting();

public:
	LONG SelVlmID() const ;

	void SelVlmID(LONG SelvlmID);

	const CString& Zdjh() const ;

	void Zdjh(const CString& zdjh);

	const CString& BoltNutStandard() const {
		Project* pProj=GetProjectManager().CurProject();
		ASSERT(pProj);
		return pProj->GetDefaultStandard().GetBoltNutStandard();
	}

	void BoltNutStandard(const CString& strBoltNut){
		m_strBoltNutStandard = strBoltNut;
	}

	const CString& ConstSpringStandard() const {
		Project* pProj=GetProjectManager().CurProject();
		ASSERT(pProj);
		return pProj->GetDefaultStandard().GetConstSpringStandard();
	}

	void ConstSpringStandard(const CString& strConstSpring){
		m_strConstSpringStandard = strConstSpring;
	}

	const CString& PAStandard() const {
		Project* pProj=GetProjectManager().CurProject();
		ASSERT(pProj);
		return pProj->GetDefaultStandard().GetPAStandard();
	}

	void PAStandard(const CString& strPA){
		m_strPAStandard = strPA;
	}

	const CString& SAStandard() const {
		Project* pProj=GetProjectManager().CurProject();
		ASSERT(pProj);
		return pProj->GetDefaultStandard().GetSAStandard();
	}

	void SAStandard(const CString& strSA){
		m_strSAStandard = strSA;
	}

	const CString& SpringStandard() const {
		Project* pProj=GetProjectManager().CurProject();
		ASSERT(pProj);
		return pProj->GetDefaultStandard().GetSpringStandard();
	}

	void SpringStandard(const CString& strSpring){
		m_strSpringStandard = strSpring;
	}

	const CString& ConnectStandard() const {
		Project* pProj=GetProjectManager().CurProject();
		ASSERT(pProj);
		return pProj->GetDefaultStandard().GetConnectStandard();
	}

	void ConnectStandard(const CString& strConnect){
		m_strConnectStandard = strConnect;
	}

	const CString& ProjectID() const {
		return m_strProjectID;
	}

	void ProjectID(const CString& strProjectID){
		m_strProjectID = strProjectID;
	}

	const CString& ProfiledBarStandard() const {
		return m_strProfiledBarStandard;
	}

	void ProfiledBarStandard(const CString& strStandard){
		m_strProfiledBarStandard = strStandard;
	}

	const CString& AttachStandard() const {
		Project* pProj=GetProjectManager().CurProject();
		ASSERT(pProj);
		return pProj->GetDefaultStandard().GetAttachStandard();
	}

	void AttachStandard(const CString& strStandard){
		m_strAttachStandard = strStandard;
	}

	SupportHangerManager& GetCurSupportHangerManager();

private:
	LONG m_SelVlmID;
	INT m_zdjh;

	CString m_strBoltNutStandard;
	CString m_strConstSpringStandard;
	CString m_strPAStandard;
	CString m_strSAStandard;
	CString m_strSpringStandard;
	CString m_strConnectStandard;
	CString m_strProfiledBarStandard;
	CString m_strAttachStandard;

	CString m_strProjectID;

};

__declspec( dllexport ) PHSRecentWork& GetRecentWork();
#endif // !defined(AFX_PHSRECENTWORK_H__A7A66B77_3E5E_446E_92F6_D5A56B523AB0__INCLUDED_)
